import 'package:aero_frisbee/app/model/login_respose_model/user_info_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'af_create_post_param_model.freezed.dart';
part 'af_create_post_param_model.g.dart';

@freezed
class AfCreatePostParamModel with _$AfCreatePostParamModel {
  factory AfCreatePostParamModel({
    @Default('') String title,
    @Default('') String content,
    @Default(false) bool isLike,
    UserInfoModel? userInfo,
    @Default([]) List<String> imgs,
  }) = _AfCreatePostParamModel;

  factory AfCreatePostParamModel.fromJson(Map<String, dynamic> json) =>
      _$AfCreatePostParamModelFromJson(json);
}
